import { fillText, moveTo, lineTo } from "@/utils/common"
export default class Bucket {
  constructor(x, y, value) {
    this.x = x
    this.y = y
    this.value = value
  }

  draw(ctx) {
    ctx.beginPath()
    ctx.fillStyle = 'black'
    moveTo(ctx, this.x, this.y)
    lineTo(ctx, this.x + 45, this.y)
    ctx.stroke()
    fillText(ctx, this.value, this.x + 22.5, this.y + 10)
  }
}